#ifndef TIMERSLIDER_H
#define TIMERSLIDER_H

#include <QWidget>
#include <QLCDNumber>
#include <QSlider>

/**
 * @brief The class creates a slider bar binding with a LCD timer.
 */
class TimerSlider : public QWidget
{
	/* Declare Q_OBJECT if you want to use the 'signal' and 'slot'
	 * mechanism provided by Qt.                                    */
	Q_OBJECT

public:
	TimerSlider( QWidget *parent = 0 );
	void setMax( int max );
	int getValue() const;

signals:
	void sliderPressed();
	void sliderReleased();

public slots:
	void setTimer( int sec );
	void disableSlider();

private:
	QLCDNumber *timer;
	QSlider *slider;

	int value;
};

#endif
